import xmind

# load or create a new workbook
w = xmind.load("test.xmind")

s1 = w.getPrimarySheet() 	# get the first sheet
s1.setTitle("first sheet") 	# set its title
r1 = s1.getRootTopic() 		# get the root topic of this sheet
r1.setTitle("root node") 	# set its title

# create a new sheet
s2 = w.createSheet()
s2.setTitle("second sheet")
r2 = s2.getRootTopic()
r2.setTitle("root node")
